<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>保存的搜索</title>
  <link href="../Styles/styles.css" rel="stylesheet" type="text/css"/>
</head>

<body>
  <h2 id="search_editor">保存的搜索</h2>

  <p class="h2subheading">— 保存的搜索用于查找 &amp; 替换 —</p>

  <p>The Saved Searches dialog allows you to save and edit all your common Find &amp; Replace searches. You can also use it to run your searches.</p>
  <p>“保存的搜索”对话框使您可以保存和编辑所有常见的“查找 &amp; 替换”搜索。您也可以使用它来运行搜索。</p>

  <p>To open Saved Searches, select the menu item <span class="menuitem">Tools→Saved Searches</span> or its keyboard shortcut:</p>
  <p>要打开“保存的搜索”，请选择菜单项 <span class="menuitem">工具→保存的搜索</span> 或其键盘快捷键：</p>

  <div class="image">
    <img alt="saved-searches-main" src="../Images/saved-searches-main.png"/>
  </div>

  <div class="tip">
    <p class="tiptext">All Saved Searches are run using the options and modes set in Find &amp; Replace.</p>
    <p class="tiptext">使用“查找 &amp; 替换”中设置的选项和模式运行所有“保存的搜索”。</p>
  </div>

  <h3 class="sigil_not_in_toc">上下文菜单命令</h3>

  <p>Most actions concerning editing searches are accessed using the right-click context menu:</p>
  <p>使用右键单击上下文菜单可以访问与编辑搜索有关的大多数操作：</p>

  <div class="image">
    <img alt="saved-searches-context-menu" src="../Images/saved-searches-context-menu.png"/>
  </div>

  <p>Select one or more entries then right-click on the selection for the following options:</p>
  <p>选择一个或多个条目，然后右键单击所选内容以选择以下选项：</p>

  <ul>
    <li><span class="listheading">Add Entry:</span> Add a blank search under the entry you clicked.</li>
    <li><span class="listheading">添加条目：</span>在您单击的条目下添加空白搜索。</li>

    <li><span class="listheading">Add Group:</span> Add a new group under the entry you clicked.</li>
    <li><span class="listheading">添加组：</span>在您单击的条目下添加一个新组。</li>

    <li class="first"><span class="listheading">Edit:</span> Edit or rename the entry (same as double-click).</li>
    <li class="first"><span class="listheading">编辑：</span>编辑或重命名条目（与双击相同）。</li>

    <li class="first"><span class="listheading">Cut:</span> Delete one or more entries that can be pasted later.</li>
    <li class="first"><span class="listheading">剪切：</span>删除一个或多个以后可以粘贴的条目。</li>

    <li><span class="listheading">Copy:</span> Copy one or more entries that can be pasted later.</li>
    <li><span class="listheading">复制：</span>复制一个或多个以后可以粘贴的条目。</li>

    <li><span class="listheading">Paste:</span> Paste any cut/copied entries.</li>
    <li><span class="listheading">粘贴：</span>粘贴所有剪切/复制的条目。</li>

    <li class="first"><span class="listheading">Delete:</span> Delete entries or groups.</li>
    <li class="first"><span class="listheading">删除：</span>删除条目或组。</li>

    <li class="first"><span class="listheading">Import:</span> Read a list of exported entries from a file into the list.</li>
    <li class="first"><span class="listheading">导入：</span>将文件中已导出条目的列表读入列表。</li>

    <li><span class="listheading">Reload:</span> Restore the list from the last saved state.</li>
    <li><span class="listheading">重新加载：</span>从上次保存的状态恢复列表。</li>

    <li class="first"><span class="listheading">Export:</span> Save selected entries to a file for sharing.</li>
    <li class="first"><span class="listheading">导出：</span>将所选条目保存到文件中以进行共享。</li>

    <li><span class="listheading">Export All:</span> Save all entries to a file.</li>
    <li><span class="listheading">全部导出：</span>将所有条目保存到文件中。</li>

    <li class="first"><span class="listheading">Collapse All:</span> Collapse the display of all groups.</li>
    <li class="first"><span class="listheading">全部折叠：</span>折叠所有组的显示。</li>

    <li><span class="listheading">Expand All:</span> Expand the display of all groups.</li>
    <li><span class="listheading">全部展开：</span>展开所有组的显示。</li>
  </ul>

  <h3 class="sigil_not_in_toc">运行搜索</h3>

  <p>Saved Searches can be used to run your searches as well as manage them.</p>
  <p>保存的搜索可用于运行搜索以及管理搜索。</p>

  <p>All of the Find &amp; Replace actions are available from the Saved Searches window, and you do not need Find &amp; Replace open to use them (although the options set in Find &amp; Replace will be used when you run the search).</p>
  <p>所有“查找 &amp; 替换”操作都可以从“保存的搜索”窗口中获得，并且不需要打开“查找 &amp; 替换”来使用它们（尽管在运行搜索时将使用“查找 &amp; 替换”中设置的选项）。</p>

  <p>To run a search, just select an entry and click one of the actions. All result messages will be displayed in the window and in Find &amp; Replace.</p>
  <p>要运行搜索，只需选择一个条目，然后单击其中一项操作即可。 所有结果消息将显示在窗口和“查找 &amp; 替换”中。</p>

  <div class="tip">
    <p class="tiptext">Although all searches are done using the modes set in Find &amp; Replace you can hold the <span class="shortcut">Ctrl</span> key down when selecting a search to force it to run temporarily in the Current File.</p>
    <p class="tiptext">尽管所有搜索都是使用 查找 &amp; 替换 中设置的模式完成的，但在选择搜索以使其强制在“当前文件”中临时运行时，您可以按住 <span class="shortcut">Ctrl</span> 键。</p>
  </div>

  <h3 class="sigil_not_in_toc">组搜索</h3>

  <p>You can actually run a group of searches. Each search will be run sequentially.</p>
  <p>您实际上可以运行一组搜索。每个搜索将按顺序运行。</p>

  <p>Simply select a group name and then, for example, run <span class="buttonbox">Count All</span>. Or select several non-group entries and run, for example, <span class="buttonbox">Replace All</span>.</p>
  <p>只需选择一个组名，然后运行 <span class="buttonbox">全部计数</span>。或选择多个非组条目并运行，例如，<span class="buttonbox">全部替换</span>。</p>

  <h3 class="sigil_not_in_toc">保存</h3>

  <p>To save your entries to disk, click <span class="buttonbox">Save</span>.</p>
  <p>要将条目保存到磁盘，请单击 <span class="buttonbox">保存</span>。</p>

  <p>To exit without saving your entries you can just close the window (with the <span class="buttonbox">Close</span> button or the <span class="shortcut">Esc</span> key) and confirm you do not want to save if prompted. You can also use the context menu <span class="menuitem">Reload</span> to reload your entries from disk – which will delete your current entries.</p>
  <p>要退出而不保存输入，只需关闭窗口（使用 <span class="buttonbox">关闭</span> 按钮或 <span class="shortcut">Esc</span> 键），如果出现提示，则确认您不想保存。您还可以使用上下文菜单 <span class="menuitem">重新加载</span> 从磁盘重新加载条目——这将删除当前条目。</p>

  <p>You can use the <span class="menuitem">Export</span> and <span class="menuitem">Import</span> context menu items to save your searches so that they can be shared with others.</p>
  <p>您可以使用 <span class="menuitem">导出</span> 和 <span class="menuitem">导入</span> 上下文菜单项来保存搜索，以便与他人共享。</p>

  <div class="tip">
    <p class="tiptext">If you save and are running more than one copy of Sigil, then the other instances of Sigil will automatically reload the newly saved searches to keep all copies in sync.</p>
    <p class="tiptext">如果您保存并运行多个 Sigil 副本，则 Sigil 的其他实例将自动重新加载新保存的搜索，以使所有副本保持同步。</p>
  </div>

  <h3 class="sigil_not_in_toc">过滤</h3>

  <p>You can use the filter text box to restrict the list of searches shown to make it easier to find a search.</p>
  <p>您可以使用过滤器文本框来限制显示的搜索列表，以使查找更加容易。</p>

  <h3 class="sigil_not_in_toc">加载搜索</h3>

  <p>Clicking the button <span class="buttonbox">Load Search</span> will load the search you have selected into the Find &amp; Replace box.</p>
  <p>单击按钮 <span class="buttonbox">加载搜索</span>，会将您选择的搜索加载到“查找 &amp; 替换”框中。</p>

  <p>Loading does not run the search – it is only a way to populate the fields in Find &amp; Replace. You can also just right-click in the Find &amp; Replace text boxes and select a saved search from the context menu to do the same thing.</p>
  <p>加载不会运行搜索——它只是填充“查找 &amp; 替换”中字段的一种方法。您也可以右键单击“查找 &amp; 替换”文本框，然后从上下文菜单中选择一个保存的搜索以执行相同的操作。</p>

  <p>You do not need to load a search if you are going to run the search from the Saved Searches dialog.</p>
  <p>如果要从“保存的搜索”对话框中运行搜索，则不需要加载搜索。</p>

  <div class="tip">
    <p class="tiptext">You can load a search using just the keyboard by using the shortcut to open Saved Search, typing your search name in the filter box and hitting return (followed by Esc if you want to close the window).</p>
    <p class="tiptext">您可以使用快捷方式打开“保存的搜索”，在过滤器框中键入搜索名称，然后按回车键（如果要关闭窗口，请按 Esc 键），仅使用键盘即可加载搜索。</p>
  </div>

  <h3 class="sigil_not_in_toc">移动条目</h3>

  <p>You can move searches or groups around by using the arrow keys or by drag and drop.</p>
  <p>您可以使用箭头键或拖放来移动搜索或组。</p>

  <p>In order to group entries you must first create a group to put them in.</p>
  <p>为了对条目进行分组，必须首先创建一个组以将其放入。</p>

  <h3 class="sigil_not_in_toc">在 查找&amp;替换 中使用保存的搜索</h3>

  <h4 class="sigil_not_in_toc">保存搜索</h4>

  <p>While in Find &amp; Replace you can save your search by right-clicking in the Find or Replace text boxes and selecting the menu item <span class="menuitem">Save Search</span>.</p>
  <p>在“查找 &amp; 替换”中，您可以通过右键单击“查找或替换”文本框并选择菜单项 <span class="menuitem">保存搜索</span> 来保存搜索。</p>

  <h4 class="sigil_not_in_toc">加载搜索</h4>

  <p>You can also load saved searches into Find &amp; Replace by right-clicking in the Find or Replace text boxes and selecting the menu item corresponding to your saved search.</p>
  <p>您也可以通过右键单击“查找”或“替换”文本框，然后选择与您保存的搜索相对应的菜单项，将保存的搜索加载到“查找 &amp; 替换”中。</p>

  <p>Once you have loaded a search you can change the mode or options before running it.</p>
  <p>加载搜索后，您可以在运行之前更改模式或选项。</p>
</body>
</html>